<script lang="ts">
import { defineComponent } from "vue";

export default defineComponent({
  props: {
    info: { type: Object, required: true },
  },
});
</script>

<template>
  <view class="interpretation-item">
    <view class="interpretation-item-type">{{ info.cate_name }}</view>
    <view class="interpretation-item-name">{{ info.name }}</view>
    <image
      class="interpretation-item-arrow"
      src="@/package/other/static/interpretation-index-arrow2.png"
    />
  </view>
</template>

<style lang="scss">
.interpretation-item {
  display: flex;
  align-items: center;
  height: 90rpx;
  padding-left: 30rpx;
  padding-right: 20rpx;
  border-radius: 10rpx;
  background-color: #ffffff;

  .interpretation-item-type {
    flex-shrink: 0;
    padding: 0 16rpx;
    font-size: 24rpx;
    color: #894720;
    line-height: 50rpx;
    font-weight: bold;
    border-radius: 10rpx;
    background: linear-gradient(96deg, #ffd588 4%, #ffc36d 60%, #ffb75b 95%);
  }

  .interpretation-item-name {
    flex-grow: 1;
    min-width: 0;
    margin-left: 20rpx;
    font-size: 30rpx;
    color: #ae4137;
    line-height: 40rpx;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }

  .interpretation-item-arrow {
    flex-shrink: 0;
    width: 16rpx;
    height: 30rpx;
    margin-left: 20rpx;
  }
}
</style>